package com.ruoyi.doctor.service.impl;

import com.ruoyi.doctor.domain.DoctorPatient;
import com.ruoyi.doctor.mapper.DoctorPatientMapper;
import com.ruoyi.doctor.service.DoctorPatientService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DoctorPatientServiceImpl implements DoctorPatientService {
    @Autowired
    private DoctorPatientMapper doctorPatientMapper;

    /**
     * 根据患者id查询患者
     * @param patientId
     * @return
     */
    @Override
    public DoctorPatient selectById(Long patientId) {
        return doctorPatientMapper.selectByPatientId(patientId);
    }
}
